// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    // const logs = wx.getStorageSync('logs') || []
    // logs.unshift(Date.now())
    // wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    userInfo: null,
    userId: -1,
    printingCount:0,
    chuku:[],
    logShangpin:[],
    nowPrint:[],
    stepItemCount: 4,
    stepItemContent: [
      "填写单据详细","选择发货人","选择销售商品","填写备注"
    ],
    stepItemContent2: [
      "填写单据详细","选择入库人","选择入库商品","填写备注"
    ],
    order: {
      danhao: "",
      xiadanriqi: null,
      xiangmumingcheng: null,
      yewuyuan:null,
      shouhuodizhi: null,
      fahuoren: null,
      wujinpeitao:null,
      wujinpeitaoStr:null,
      beizhu:null,
      zongjine:null,
      shangpin:[]
    }
  }
})
